package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;

/**
 * 电路属性参数模板
 * @TableName es_circuit_code_data_template
 */
public class EsCircuitCodeDataTemplate implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 电路类型编号
     */
    private Long circuit_type_id;

    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 编码类型
     */
    private Integer type;

    /**
     * 数据类型
     */
    private Integer data_type;

    /**
     * 状态
     */
    private Integer state;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 电路类型编号
     */
    public Long getCircuit_type_id() {
        return circuit_type_id;
    }

    /**
     * 电路类型编号
     */
    public void setCircuit_type_id(Long circuit_type_id) {
        this.circuit_type_id = circuit_type_id;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 编码
     */
    public String getCode() {
        return code;
    }

    /**
     * 编码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 编码类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 编码类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 数据类型
     */
    public Integer getData_type() {
        return data_type;
    }

    /**
     * 数据类型
     */
    public void setData_type(Integer data_type) {
        this.data_type = data_type;
    }

    /**
     * 状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsCircuitCodeDataTemplate other = (EsCircuitCodeDataTemplate) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCircuit_type_id() == null ? other.getCircuit_type_id() == null : this.getCircuit_type_id().equals(other.getCircuit_type_id()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getData_type() == null ? other.getData_type() == null : this.getData_type().equals(other.getData_type()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCircuit_type_id() == null) ? 0 : getCircuit_type_id().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getData_type() == null) ? 0 : getData_type().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", circuit_type_id=").append(circuit_type_id);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", type=").append(type);
        sb.append(", data_type=").append(data_type);
        sb.append(", state=").append(state);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}